<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="javascript:;">客户确认列表</a></li>
        <li ><a href="{:url('qrkh/select')}">添加确认</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('Caiwu/caiwu')}">
        信息查询:
        <select class="form-control" name="category" style="width: 140px;">
            <option value="1">标题</option>
            <option value="2">联系人</option>
            <option value="3">联系方式</option>
        </select>
                <input type="text" class="form-control" name="keyword" style="width: 200px;"
               placeholder="请输入关键字...">
        状态:
        <select class="form-control" name="status" style="width: 140px;">
            <option value="1">已确认</option>
            <option value="2">未确认</option>
        </select>
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <div style="float: right"> 
        
      
       </div>
    </form>
    <form class="js-ajax-form" action="{:url('Hetong/dels')}" method="post">
        <div class="table-actions">
            <notempty name="category">
                <button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
                        data-action="{:url('AdminArticle/listOrder')}">{:lang('SORT')}
                </button>
            </notempty>
        </div>
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="15">
                    <label>
                        <input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x" >
                    </label>
                </th>
                <notempty name="category">
                    <th width="50">{:lang('SORT')}</th>
                </notempty>
                <th width="100">标题</th>
                <th width="100">待确认网址</th>
              
                 <th width="100">联系人</th>
                <th width="100">联系人手机</th>
                <th width="100">创建时间</th>
                <th width="100">状态</th>
                <th width="100">操作</th>
            </tr>
            </thead>

 <volist name='data' id='list'>
<tr>
    <td>
        <input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"
               value="{$list.id}" name="id[]" >
    </td>
    <td width="50">{$list.title}</td>
    <td width="50">{$list.qr_url}</td>
   
    <td width="50">{$list.kh_name}</td>
    <td width="50">{$list.kh_mobile}</td>
    <td width="50">{:date('Y-m-d'.' H:s:i',$list['add_time'])}</td>
    <td width="50">
     <?php if($list['status']==1){ ?><span style="color: green">[已确认]</span> <?php } ?>
     <?php if($list['status']==2){ ?><span style="color: red">[未确认]</span> <?php } ?>
    </td>
    <td width="50">
    <input  type="button"  value="复制" class="btn btn-info btn-sm fuzhi" data="{$list.url}">
    <a href="{:url('qrkh/lxselect','id='.$list.id)}">
    <input  type="button"  value="查看详细" class="btn btn btn-primary btn-sm">
    </a>
     <a href="{:url('qrkh/cx_status','id='.$list.id)}">
    <input  type="button"  value="重新确认" class="btn btn btn-primary btn-sm">
    </a>
   </td>
</tr>

 </volist>
 
        </table>
                
               
        <ul class="pagination" style="float: right">{$page}</ul>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script type="text/javascript" src="https://cdn.bootcss.com/clipboard.js/2.0.1/clipboard.js"></script>
<script type="text/javascript">
	    function abc(x) {
        var url="{:url('Gongdan/sk')}?id=" +x;
        openIframeLayer(url, '收款列表', {
            area: ['700px', '600px'],
            btn: ['确定'],
            yes: function (index, layero) {
                //do something

                //console.log(layer.getFrameIndex(index));
                layer.close(index); //如果设定了yes回调，需进行手工关闭
            }
        });
    }

    
</script>
<script>
	var clipboard = new ClipboardJS('.fuzhi', {
        text: function() {
			 
			alert("复制成功");
			   
            return $('.fuzhi').attr("data");
        }
    });
  </script>
<script type="text/javascript">
	    function abc() {
        var url="{$post.qr_url}";
        openIframeLayer(url, '待确认页面', {
            area: ['520px', '820px'],
            btn: ['返回'],
            yes: function (index, layero) {
                //do something

                //console.log(layer.getFrameIndex(index));
                layer.close(index); //如果设定了yes回调，需进行手工关闭
            }
        });
		}
</script>
</body>
</html>